package com.demo02;

public class Student {

    String name;
    int age;

    public void study() {
        System.out.println(this.name + "在学习");
    }
}
/*
  public static void main(String[] args) {
        Student xm = new Student();
        Student xh = new Student();

        xm.name = "小明";
        xm.age = 18;
        System.out.println(xm.name);
        System.out.println(xm.age);

        System.out.println("-------------------------");

        xh.name = "小红";
        xh.age = 19;
        System.out.println(xh.name);
        System.out.println(xh.age);
    }
 */